<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/30 0030
 * Time: 下午 8:11
 */

namespace app\index\controller;

use app\admin\model\CategoryModule;
use app\admin\model\Lesson;
use think\Db;

class Cases extends Base
{
    protected $beforeActionList=['category'];



    public function index(){
        $id = $this->request->param('id');
        $cases = Db::name('cases')->where('id', $id)->find();


        $this->assign([
            'cases' => $cases,

            'webTitle'=>"{$cases['title']}-客户案例-湖南绿苑节能科技有限公司",
            'webKeywords'=>"{$cases['title']}，客户案例，湖南绿苑节能科技有限公司",
            'webDecs'=>"{$cases['title']}，客户案例，湖南绿苑节能科技有限公司",
        ]);
        return view("ly_index");
    }
}